Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add aws.log.group.names attribute to LambdaResourceDetector #139

Merged
merged 4 commits into from
Dec 14, 2024

Conversation

garysassano
Copy link
Contributor

@garysassano garysassano commented Dec 11, 2024

Add aws.log.group.names resource attribute to LambdaResourceDetector using the AWS_LAMBDA_LOG_GROUP_NAME environment variable that is always available in Lambda runtimes.

This follows the OpenTelemetry semantic convention for AWS Logs attributes.

The semantic convention specifies that aws.log.group.names should be an array of strings to support cases like multi-container applications, though in AWS Lambda we'll only ever have a single log group.

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@garysassano garysassano requested a review from a team as a code owner December 11, 2024 19:39
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.4%. Comparing base (c6974fb) to head (02a5ed5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #139     +/-   ##
=======================================
+ Coverage   54.3%   54.4%   +0.1%     
=======================================
  Files         41      41             
  Lines       6227    6243     +16     
=======================================
+ Hits        3384    3400     +16     
  Misses      2843    2843             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lalitb
Copy link
Member

lalitb commented Dec 12, 2024

nit - changelog ?

@garysassano
Copy link
Contributor Author

@lalitb What do you mean? Am I supposed to provide something?

@lalitb lalitb merged commit c27ebcc into open-telemetry:main Dec 14, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants